
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type StoreBargainUserRequest struct {

	Uid string `json:"uid" form:"uid"`

	BargainId string `json:"bargain_id" form:"bargain_id"`

	BargainPriceMin string `json:"bargain_price_min" form:"bargain_price_min"`

	BargainPrice string `json:"bargain_price" form:"bargain_price"`

	Price string `json:"price" form:"price"`

	Status string `json:"status" form:"status"`

	AddTime string `json:"add_time" form:"add_time"`

	IsDel string `json:"is_del" form:"is_del"`

}

func (r *StoreBargainUserRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *StoreBargainUserRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"uid": "required",

		"bargain_id": "required",

		"bargain_price_min": "required",

		"bargain_price": "required",

		"price": "required",

		"status": "required",

		"add_time": "required",

		"is_del": "required",

	}
}

func (r *StoreBargainUserRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreBargainUserRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreBargainUserRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
